<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>登录 - 简易商城</title>
    <link rel="stylesheet" href="../css/css/style.css">
    <style>
        body { background: #f5f5f5; }
        .form-container { max-width: 350px; margin: 80px auto; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px #eee; padding: 30px 40px; }
        h2 { text-align: center; }
        input { width: 100%; margin-bottom: 16px; padding: 8px; border-radius: 4px; border: 1px solid #ccc; }
        button { width: 100%; background: #e4393c; color: #fff; border: none; border-radius: 4px; padding: 10px; font-size: 16px; cursor: pointer; }
        button:hover { background: #b7271e; }
        #loginMsg { color: #e4393c; text-align: center; margin-top: 10px; }
        .form-footer { text-align: center; margin-top: 10px; }
    </style>
</head>
<body>
    <div class="form-container">
        <h2>登录</h2>
        <form id="loginForm">
            <input type="text" id="username" placeholder="用户名" required>
            <input type="password" id="password" placeholder="密码" required>
            <button type="submit">登录</button>
        </form>
        <div class="form-footer">
            没有账号？<a href="register.html">去注册</a>
        </div>
        <div id="loginMsg"></div>
    </div>
    <script src="../js/auth.js"></script>
</body>
</html>